/**
 *  rect.h
 *  AwkwardPaint - Engine
 *
 *  Date: 11/08/2013
 *
 *  Language: C++
 *
 *  @author Carl McCaffrey
 *
 */
#ifndef RECT_H
#define RECT_H

#include "math/vector2.h"

#define DegToRad(x){x * (3.14159 / 180)}
#define RadToDeg(x){x * (180 / 3.14159)}

class Rect
{
    public:
        Vector2 pos;
        Vector2 size;
        float scale;
        float orientation;
        Vector2 vertices[4];

        float trig[2];
        float prev_orientation;

        void Set(float x, float y, float width, float height, float scalef, float angle_rad);
        void CalculateVertices(void);
};

#endif // RECT_H
